package cn.tmall.service;

import cn.tmall.pojo.Order;
import cn.tmall.pojo.OrderItem;

import java.util.List;

public interface OrderService {
    String waitPay = "waitPay";
    String waitDelivery = "waitDelivery";
    String waitConfirm = "waitConfirm";
    String waitReview = "waitReview";
    String finish = "finish";
    String delete = "delete";

    public void add(Order order);
    public void delete(int id);
    public void update(Order order);
    public Order get(int id);
    public List<Order> list();

    float add(Order order, List<OrderItem> orderItemList);  //添加新order的同时更新orderItem表的oid

    List<Order> list(int uid, String excludedStatus);
}
